package com.noahplat.user.feign;


import com.noahplat.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user", contextId = "sconfigFeign")
public interface SconfigFeign {
    /**
     * 查询正在使用的key值ID
     * @return
     */
    @GetMapping("/api/sconfig/getMapnum")
    public Result getMapnum(@RequestParam("type") String type, @RequestHeader("Authorization")String token);

    /**
     * 修改正在使用的key值ID
     * @return
     */
    @PutMapping("/api/sconfig/updateMapnum")
    public Result updateMapnum(@RequestParam("id") Long id,@RequestHeader("Authorization")String token);
}
